!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("rb_wixui.thunderbolt[SkipToContentButton]",["react"],t):"object"==typeof exports?exports["rb_wixui.thunderbolt[SkipToContentButton]"]=t(require("react")):e["rb_wixui.thunderbolt[SkipToContentButton]"]=t(e.React)}("undefined"!=typeof self?self:this,(function(e){return function(){var t={5329:function(t){"use strict";t.exports=e},448:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{id:r,className:o,translations:u}=e,[c,s]=n.useState(!1);n.useEffect((()=>{const e=document.querySelector("header");s(!!e&&Array.from(e.querySelectorAll('a[href], button, input, textarea, select, summary, details, iframe, object, embed, [contenteditable], [tabindex]:not([tabindex="-1"])')).some((e=>!(e.hasAttribute("disabled")||"true"===e.getAttribute("aria-hidden")||"true"===e.getAttribute("aria-disabled")))))}),[]);return c?n.createElement("button",t()({id:r},(e=>Object.entries(e).reduce(((e,[t,n])=>(t.includes("data-")&&(e[t]=n),e)),{}))(e),{key:r,className:i(o,a,"has-custom-focus"),tabIndex:0,onClick:()=>{const e=document.querySelector("[data-main-content]")||document.querySelector("[data-main-content-parent]>section:first-of-type");null==e||e.focus()}}),u.buttonLabel):null}}}}(),o}()})); //# sourceMappingURL=https://static.parastorage.com/services/editor-elements-library/dist/thunderbolt/rb_wixui.thunderbolt[SkipToContentButton].a2d57d10.bundle.min.js.map